<?php  
	function delete_user($username){
		$delete = "DELETE FROM Users WHERE username='".$username."';";
		$result = mysql_query($delete);	
		$delete = "DELETE FROM UserProfile WHERE username='".$username."';";
		$result = mysql_query($delete);	
		$delete = "DELETE FROM UserTags WHERE username='".$username."';";
		$result = mysql_query($delete);	
	}
	
	include_once '../manage_db/db_connect.php';
	$con = db_connect();
	$username = $_GET['link'];
	delete_user($username);
	header("Location: ../manage_users.php");
?>